<?php

class Job
{
	private $iId;
	
	private $sJobAction;
	
	private $oJobCollection = null;
	
	private $iFeedId = null;
	
	public function __construct()
	{
		$this->oJobCollection = new JobCollection();
	}
	
	public function getJobId()
	{
		return $this->iId;
	}
	
	public function getJobAction()
	{
		return $this->sJobAction;
	}
	
	public function executeJob()
	{
		$sAction = $this->getJobAction();
		
		// führe den Job aus
		$aReport = $this->oJobCollection->$aAction();
		
		return $aReport;
	}
	
	public function setFeedId($iFeedId)
	{
		$this->iFeedId = $iFeedId;
	}
	
	public function getFeedId()
	{
		return $this->iFeedId;
	}
	
}